<template>
  <div class="department" id="department">
    <!-- 右侧 -->
    <div class="department_right">
      <!-- 顶部导航栏 -->
      <div class="mechanism_nav app-container-search">
        <!-- 左侧 -->
        <el-form ref="form" :model="getList" label-width="110px">
          <el-row :gutter="20">
            <el-col :span="6"
              ><el-form-item label="项目名称：">
                <el-select
                  class="selectBhz"
                  v-model="getList.fprojectid"
                  placeholder="所有项目"
                  @change="selectProject"
                >
                  <el-option
                    v-for="v in projectsObj"
                    :key="v.fItemName"
                    :label="v.fItemName"
                    :value="v.fItemValue"
                  >
                  </el-option>
                </el-select> </el-form-item
            ></el-col>
            <el-col :span="6"
              ><el-form-item label="标段名称：">
                <el-select
                  class="selectBhz"
                  v-model="getList.fCompanyid"
                  placeholder="所有标段"
                  @change="selectTender"
                >
                  <el-option
                    v-for="v in tendersObj"
                    :key="v.fItemName"
                    :label="v.fItemName"
                    :value="v.fItemValue"
                  >
                  </el-option>
                </el-select> </el-form-item
            ></el-col>
            <el-col :span="6">
              <el-form-item label="梁场名称：">
                <el-select
                  class="selectBhz"
                  v-model="getList.stationId"
                  placeholder="梁场查询"
                  @change="selectStation"
                >
                  <el-option
                    v-for="v in bhzDataList"
                    :key="v.fItemName"
                    :label="v.fItemName"
                    :value="v.fItemValue"
                  >
                  </el-option>
                </el-select> </el-form-item
            ></el-col>
            <el-col :span="6">
              <el-form-item label="张拉机名称：">
                <el-select
                  class="selectBhz"
                  v-model="getList.machineId"
                  placeholder="张拉机查询"
                >
                  <el-option
                    v-for="v in bhjDataList"
                    :key="v.fItemName"
                    :label="v.fItemName"
                    :value="v.fItemValue"
                  >
                  </el-option>
                </el-select>
              </el-form-item>
            </el-col>
          </el-row>
          <el-row :gutter="20">
            <!-- <el-col :span="12">
              <el-form-item label="张拉日期：">
                <el-date-picker
                  :picker-options="pickerOptions"
                  value-format="yyyy-MM-dd"
                  @change="selectTime"
                  v-model="timeDuring"
                  type="daterange"
                  range-separator="至"
                  start-placeholder="开始日期"
                  end-placeholder="结束日期"
                  :append-to-body="false"
                >
                </el-date-picker>
              </el-form-item>
            </el-col> -->
            <el-col :span="6"
              ><el-form-item label="工程部位：">
                <el-input
                  type="text"
                  placeholder="工程部位查询"
                  v-model="getList.fProjectposition"
                /> </el-form-item
            ></el-col>
            <el-col :span="6"
              ><el-form-item label="任务单号">
                <el-input
                  type="text"
                  placeholder="任务单号查询"
                  v-model="getList.taskNo"
                /> </el-form-item
            ></el-col>
            <el-col :span="6"
              ><el-form-item label="闭合状态：">
                <el-select
                  class="selectCondition"
                  v-model="getList.fStatus"
                  placeholder="完成状态"
                >
                  <el-option
                    v-for="v in completeState"
                    :key="v.fItemName"
                    :label="v.fItemName"
                    :value="v.fItemValue"
                  >
                  </el-option>
                </el-select> </el-form-item
            ></el-col>
            <!-- <el-col :span="6">
              <el-form-item label="分部分项：">
                <el-input
                  type="text"
                  placeholder="分部分项查询"
                  v-model="getList.keyWord"
                /> </el-form-item
            ></el-col> -->
          </el-row>

          <div class="searchBtn">
            <el-button
              type="primary"
              :loading="editLoading"
              @click="yj_searchForm(getList)"
            >
              查询
            </el-button>
            <el-button @click="reset">重置</el-button>
            <!-- </el-form-item> -->
            <!-- </el-col> -->
          </div>
        </el-form>
      </div>
      <div class="app-container-btn">
        <el-button type="primary" @click="ClickOnLine('新增')">新增</el-button>
        <el-button type="primary" @click="ClickOnLine('编辑')">编辑</el-button>
        <el-button type="primary" @click="ClickOnLine('查看')">查看</el-button>
        <el-button type="primary" @click="SubmitText(rowInfo)">提交</el-button>
        <el-button type="primary" @click="rowDelete(rowInfo)">删除</el-button>
      </div>
      <!-- 表格 -->
      <div class="text_table TensionRealTime">
        <tableData
          :stripe="false"
          height="100%"
          :config="table_config"
          :dataList="tableData"
          :loading="listLoading"
          @selection-change="selectionChange"
          @sort-change="sortChange"
          @click-change="rowChange"
          @openDialog="yj_viewForm"
          @ClickOnLine="tableDataClick"
          :page="getList.page"
          :pageSize="getList.pageSize"
        />
        <pagination
          :info="queryCriteriaData"
          :total="queryCriteriaData.total"
          :pageNum.sync="getList.page"
          :limit.sync="getList.pageSize"
          @pagination="yj_searchForm(getList)"
        />
      </div>
    </div>
    <messageBox
      :showMsgBox="showMsgBox"
      :msgTip="msgTip"
      :msgType="msgType"
      @confirmMsg="confirmMsg"
      @confirmMsgs="confirmMsgs"
    ></messageBox>
  </div>
</template>

<script>
import actions from "@/actions";
import TableData from "@/components/public/el-tables"; //主页面列表
import Pagination from "@/components/public/el-pagination"; //主页面分页
import formJs from "./regexDetail.js"; //新增弹框配置项
import messageBox from "@/components/public/messageBox"; //弹框

import {
  getTensioningTaskList, //主页面列表接口
  submitTensioningTask, //提交
  deleteTensioningTask, //删除
  getStationmachineList, //梁场列表
  getMachineListByStationId, //4张拉机、5压浆机设备查询
  endTensioningTask, //任务单完成接口
} from "@/api/request.js";
// import { statusType3 } from "@/utils/config"; //配置项
export default {
  name: "Tension_task_list",
  data() {
    return {
      name: "Tension_task_list", //按钮配置页面代号
      showMsgBox: false,
      msgTip: "你好",
      msgType: 3,

      editLoading: false,
      rowInfo: {
        fId: "",
      }, //列表当前行信息
      pickerOptions: {
        disabledDate(time) {
          return time.getTime() > Date.now();
        },
      },
      queryCriteriaData: {}, //分页
      completeState: formJs.completeState,
      // level: [], //强度等级
      bhzDataList: [], //拌合站
      bhjDataList: [], //拌合机
      // 列表配置项
      table_config: formJs.StateTable_config,
      tableData: [], //表格列表数据列表
      listLoading: false, //列表数据加载loading

      projectsObj: [], //项目名
      tendersObj: [],
      timeDuring: "", //张拉时间
      titelName: null, //功能名称
      // 列表给后端传参
      getList: {
        fprojectid: "",
        fCompanyid: "", // 施工标段id，不为空
        startDates: "", // 开始时间
        endDates: "", // 截至时间
        stationId: "", // 梁场id
        machineId: "", // 张拉机id
        warningLevel: "", // 预警等级
        fCloseoperation: "", // 闭合状态
        keyWord: "", //  模糊条件
        page: 1, // 当前页数
        pageSize: 15, // 每页显示条数
        timeStr: "",
        fProjectposition: "", //工程部位模糊查询
        taskNo: "", //任务单模糊查询
        fStatus: "", //状态
        keyType: "1", //张拉 1 压浆 2 必填
      },
      userInfo: {}, //登录用户
      token: null,
    };
  },
  components: {
    TableData, //主页面列表
    Pagination, //分页
    messageBox,
  },
  mounted() {
    actions.onGlobalStateChange((state, prev) => {
      var data = prev.currentUser.projects;
      this.userInfo = prev.currentUser;
      this.token = prev.token;
      this.projectsObj = [
        {
          fItemName: "所有项目",
          fItemValue: "",
        },
      ];
      data.map((item) => {
        this.projectsObj.push({
          fItemName: item.projectName,
          fItemValue: item.projectId,
        });
      });
    }, true);
    this.getDate();
    // this.btnRole(this.name);

    // this.table_config.thead[2]["callback"] = function (rowData) {
    //   let data = statusType3[rowData.fWarninglevel];
    //   if (data) {
    //     return data.label;
    //   }
    // };
    // this.table_config.thead[2]["specialClass"] = function (rowData) {
    //   let data = statusType3[rowData.fWarninglevel];
    //   if (data) {
    //     return data.className;
    //   }
    // };

    this.table_config.operation.cols = [
      {
        prop: "fStatus",
        type: "primary",
        handleRow: this.handleRow,
      },
    ];

    this.table_config.operation["specialClass"] = function (rowData) {
      var color = null;
      if (rowData == "未完成") {
        color = "red !important";
      } else if (rowData == "已完成") {
        color = "green !important";
      } else {
        color = "#409eff !important";
      }
      return color;
    };
  },

  // destroyed() {
  //   console.log("destroyed");
  //   window.sessionStorage.removeItem("GxTensionManage_beam");
  // },
  methods: {
    // 不带功能的确定、取消按钮
    confirmMsg() {
      this.showMsgBox = false;
    },
    // 带功能确定
    confirmMsgs() {
      if (this.titelName == "提交") {
        this.loading = true;
        submitTensioningTask({
          fId: this.rowInfo.fId,
          fCompanyid: this.rowInfo.fCompanyid,
          userId: this.userInfo.id,
          userName: this.userInfo.userName,
        })
          .then((res) => {
            if (res.errcode == 0) {
              this.loading = false;
              this.showMsgBox = false;
              this.yj_searchForm(this.getList);
              this.$message.success("提交成功");
            } else {
              this.$message.error("提交失败", res.msg);
              this.loading = false;
            }
          })
          .catch(() => {
            this.loading = false;
          });
      } else if (this.titelName == "删除") {
        this.loading = true;
        deleteTensioningTask({
          fId: this.rowInfo.fId,
          fCompanyid: this.rowInfo.fCompanyid,
          userId: this.userInfo.id,
          userName: this.userInfo.userName,
        })
          .then((res) => {
            if (res.errcode == 0) {
              this.loading = false;
              this.showMsgBox = false;
              this.yj_searchForm(this.getList);
              this.$message.success("删除成功");
            } else {
              this.$message.error("删除失败", res.msg);
              this.loading = false;
            }
          })
          .catch(() => {
            this.loading = false;
          });
      } else if (this.titelName == "改变") {
        this.loading = true;
        endTensioningTask({
          fId: this.rowInfo.fId,
          fCompanyid: this.rowInfo.fCompanyid,
          userId: this.userInfo.id,
          userName: this.userInfo.userName,
        })
          .then((res) => {
            if (res.errcode == 0) {
              this.loading = false;
              this.showMsgBox = false;
              this.yj_searchForm(this.getList);
              this.$message.success("提交成功");
            } else {
              this.$message.error("提交失败", res.msg);
              this.loading = false;
            }
          })
          .catch(() => {
            this.loading = false;
          });
      }
    },
    selectProject(e) {
      this.tendersObj = [];
      this.bhzDataList = [];
      this.getList.fCompanyid = "";
      this.getList.stationId = "";
      this.getList.machineId = "";
      this.getList.fProjectposition = "";
      this.getList.taskNo = "";
      this.getList.fStatus = "";
      this.bhjDataList = [];

      this.getTender(e, 1);
    },
    async getTender(e, num) {
      await this.$http(
        " http://172.18.5.31:8300/IOTManagement/Base/Company/getGXJLBaseCompanyList.do?projectId=" +
          e,
        {
          headers: {
            "Content-Type": "application/json",
            Authorization: localStorage.getItem("access_token"),
          },
        }
      ).then((res) => {
        if (res.status == 200) {
          var data = res.data.data.GXCompanyList;
          this.tendersObj = [];
          if (data.length == 1) {
            data.map((item) => {
              this.tendersObj.push({
                fItemName: item.sectionName,
                fItemValue: item.sectionId,
              });
            });
            this.getList.fCompanyid = data[0].sectionId;
          } else {
            this.tendersObj = [
              {
                fItemName: "所有标段",
                fItemValue: "",
              },
            ];
            data.map((item) => {
              this.tendersObj.push({
                fItemName: item.sectionName,
                fItemValue: item.sectionId,
              });
            });
          }

          if (num == 0) {
            // num==0 调列表；num==1 不调
            this.yj_searchForm(this.getList);
          }
        }
      });
    },
    selectTender(e) {
      this.getList.stationId = "";
      this.getList.machineId = "";
      this.getList.fProjectposition = "";
      this.getList.taskNo = "";
      this.getList.fStatus = "";
      this.bhjDataList = [];
      this.bhzDataList = [];

      this.mixingPlantList(0, this.getList);
    },
    selectStation(e) {
      this.getList.machineId = "";
      this.getList.stationId = e;
      this.bhjDataList = [];
      this.getbhjDataMethods(e, 4);
    },
    btnRole(name) {
      // 按钮权限
      var btnList = [];
      var ModuleList = JSON.parse(
        sessionStorage.getItem("GxEmbedded_ModuleList")
      );
      if (ModuleList.length > 0) {
        ModuleList.map((item) => {
          if (item.fEncode == name) {
            btnList = item.modulebuttonList;
          }
        });
        var btnStr = [];
        btnList.map((item) => {
          btnStr.push(item.fEncode);
        });
        // this.yj_view = btnStr.includes("yj_view");
      } else {
        // this.yj_view = true;
      }
    },

    reset() {
      this.timeDuring = "";
      this.getList = {
        fCompanyid: "", // 施工标段id，不为空
        startDates: "", // 开始时间
        endDates: "", // 截至时间
        stationId: "", // 梁场id
        machineId: "", // 张拉机id
        warningLevel: "", // 预警等级
        fCloseoperation: "", // 闭合状态
        keyWord: "", //  模糊条件
        page: 1, // 当前页数
        pageSize: 15, // 每页显示条数
        timeStr: "",
        fProjectposition: "", //工程部位模糊查询
        taskNo: "", //任务单模糊查询
        fStatus: "", //状态
        keyType: "1", ////张拉 1 压浆 2 必填
      };
    },
    // 获取列表数据
    yj_searchForm(data) {
      this.listLoading = true;
      if (this.getList.fStatus == "==请选择==") {
        data.fStatus = ""; //闭合状态
      }
      if (this.getList.machineId == "所有张拉机") {
        data.machineId = "";
      }
      if (this.getList.stationId == "所有梁场") {
        data.stationId = "";
      }
      window.sessionStorage.setItem(
        "GxEmbedded_TensionManage_getLists",
        JSON.stringify(data)
      );

      var id;
      if (data.fCompanyid != "") {
        id = data.fCompanyid;
      } else {
        id = data.fprojectid;
      }
      var getList = {
        userId: this.userInfo.id,
        fCompanyid: id, // 施工标段id，不为空
        startDates: "", // 开始时间
        endDates: "", // 截至时间
        stationId: data.stationId, //梁场id
        machineId: data.machineId, // 张拉机id
        fProjectposition: data.fProjectposition, //工程部位模糊查询
        taskNo: data.taskNo, //任务单模糊查询
        fStatus: data.fStatus, //状态
        keyType: "1", ////张拉 1 压浆 2 必填
        modelType: "3",
        page: data.page, // 当前页数
        pageSize: 15, // 每页显示条数
      };
      getTensioningTaskList(getList)
        .then((res) => {
          if (res.errcode == 0) {
            var that = this;
            that.listLoading = false;
            that.tableData = res.data.pageInfo.list;
            this.queryCriteriaData = res.data.pageInfo; //分页信息
            // this.downloadExcel()
          } else {
            // this.$message.error(res.msg);
            // this.$MessageBox.alertConfirmReminder(res.msg);

            return false;
          }
        })
        .catch((error) => {
          console.log(error);
        });
    },

    // 任务单完成状态
    yj_viewForm(row) {
      if (row.fStatus == "未完成") {
        if (this.tendersObj.length == 1) {
          this.msgTip = '是否将"未完成"提交为"已完成"?';
          this.msgType = 2; // 0 带功能确定  1 无功能确定  2 带功能确定、取消
          this.showMsgBox = true;
          this.titelName = "改变";
        } else {
          this.msgTip = "没有权限操作此功能";
          this.msgType = 1; // 0 带功能确定  1 无功能确定  2 带功能确定、取消
          this.showMsgBox = true;
        }
      }
    },
    // 任务单号查详情
    tableDataClick(row, label) {
      if (label == "任务单号") {
        if (row.infoId == "" || row.infoId == null) {
          this.msgTip = "该任务单暂无生产数据！";
          this.msgType = 1; // 0 带功能确定  1 无功能确定  2 带功能确定、取消
          this.showMsgBox = true;
        } else {
          var beamData = {
            data: row.beamId,
            fCompanyid: row.infoCompanyId,
          };
          window.sessionStorage.setItem(
            "GxTensionManage_beam",
            JSON.stringify(beamData)
          );

          this.$router.push({
            path: "/tensionManage/tensionRealTimeFirstLevel",
          });
        }
      }
    },
    // 获取梁场
    mixingPlantList(num, datas) {
      var data = {
        companyId: datas.fCompanyid, // 施工标段id
        modelType: num, // 类型
        stationType: "4", // 拌合站类型
      };

      // this.bhzDataList = [];
      getStationmachineList(data)
        .then((res) => {
          if (res.errcode == 0) {
            var arr = res.data.stationmachineList;
            this.bhzDataList = [
              {
                fItemName: "所有梁场",
                fItemValue: "",
              },
            ];

            arr.map((item) => {
              this.bhzDataList.push({
                fItemName: item.fMachinename,
                fItemValue: item.fMachineid,
              });
            });

            // }
          } else {
            // this.$MessageBox.alertConfirmReminder(res.msg);
            this.msgTip = res.msg;
            this.msgType = 1; // 0 带功能确定  1 无功能确定  2 带功能确定、取消
            this.showMsgBox = true;

            return false;
          }
        })
        .catch((error) => {
          console.log(error);
        });
    },

    // 拌合机
    getbhjDataMethods(data, num) {
      getMachineListByStationId({ stationId: data, modelType: num })
        .then((res) => {
          if (res.errcode == 0) {
            var arr = res.data.stationmachineList;

            this.bhjDataList = [
              {
                fItemName: "所有张拉机",
                fItemValue: "",
              },
            ];
            arr.map((item) => {
              this.bhjDataList.push({
                fItemName: item.fMachinename,
                fItemValue: item.fMachineid,
              });
            });
          } else {
            this.msgTip = res.msg;
            this.msgType = 1; // 0 带功能确定  1 无功能确定  2 带功能确定、取消
            this.showMsgBox = true;
            // this.$MessageBox.alertConfirmReminder(res.msg);

            return false;
          }
        })
        .catch((error) => {
          console.log(error);
        });
    },

    // 时间间隔

    selectTime(e) {
      if (e[0] != "" && e[1] != "") {
        this.getList.startDates = e[0] + " " + "00:00:00"; // 开始时间
        this.getList.endDates = e[1] + " " + "23:59:59"; // 截至时间
      } else {
        this.getList.startDates = ""; // 开始时间
        this.getList.endDates = ""; // 截至时间
      }
    },

    getDate() {
      if (
        JSON.parse(sessionStorage.getItem("GxEmbedded_TensionManage_getLists"))
      ) {
        var getList = JSON.parse(
          sessionStorage.getItem("GxEmbedded_TensionManage_getLists")
        );

        if (getList.fprojectid != "" || getList.fprojectid != null) {
          this.getTender(getList.fprojectid, 0);
        } else {
          getList.fprojectid = this.projectsObj[1].fItemValue;
          this.getTender(getList.fprojectid, 0);
        }

        if (getList.fCompanyid != "" && getList.fCompanyid != null) {
          this.mixingPlantList(0, getList);
        }
        if (getList.stationId != "" && getList.stationId != null) {
          this.getbhjDataMethods(getList.stationId, 4);
        }

        this.getList = {
          fprojectid: getList.fprojectid,
          fCompanyid: getList.fCompanyid, // 施工标段id，不为空
          startDates: getList.startDates, // 开始时间
          endDates: getList.endDates, // 截至时间
          stationId: getList.stationId, // 梁场id
          machineId: getList.machineId, // 张拉机id
          warningLevel: getList.warningLevel, // 预警等级
          fCloseoperation: getList.fCloseoperation, // 闭合状态
          keyWord: "", //  模糊条件
          page: 1, // 当前页数
          pageSize: 15, // 每页显示条数
          timeStr: getList.timeStr,
          fProjectposition: getList.fProjectposition, //工程部位模糊查询
          taskNo: getList.taskNo, //任务单模糊查询
          fStatus: getList.fStatus, //状态
          keyType: "1", ////张拉 1 压浆 2 必填
        };
        if (this.getList.startDates == "") {
          this.getList.startDates = this.common.getDay(-90) + " " + "00:00:00"; // 开始时间
          this.getList.endDates = this.common.getDay(0) + " " + "23:59:59"; // 截至时间
        }
        this.timeDuring = [this.getList.startDates, this.getList.endDates];
      } else {
        this.getList.startDates = this.common.getDay(-90) + " " + "00:00:00"; // 开始时间
        this.getList.endDates = this.common.getDay(0) + " " + "23:59:59"; // 截至时间
        this.getList.fprojectid = this.projectsObj[1].fItemValue;
        this.getTender(this.getList.fprojectid, 0);
        this.timeDuring = [
          this.common.getDay(-90) + " " + "00:00:00",
          this.common.getDay(0) + " " + "23:59:59",
        ];
      }
    },

    selectionChange() {},
    // 排序方法
    sortChange() {},
    // 点击当前行
    rowChange(row) {
      this.rowInfo = row; //当前行信息
    },
    // 查看
    ClickOnLine(titel) {
      if (titel == "新增") {
        this.$router.push({
          path: "/tensionManage/tensionTaskListDetails",
        });
        var query = {
          fId: "",
          fCompanyid: this.getList.fCompanyid,
          num: titel,
        };
        window.sessionStorage.setItem(
          "GxEmbedded_TWbsQuery",
          JSON.stringify(query)
        );
      } else {
        if (this.rowInfo.fId != "") {
          if (titel == "编辑") {
            if (this.rowInfo.fStatus == "未提交") {
              var that = this;
              that.routerFun(titel);
            } else {
              this.msgTip = '请选择状态为"未提交"的数据！';
              this.msgType = 1; // 0 带功能确定  1 无功能确定  2 带功能确定、取消
              this.showMsgBox = true;

              // this.$MessageBox.alertConfirmReminder(
              //   '请选择状态为"未提交"的数据！'
              // );
            }
          } else {
            this.routerFun(titel);
          }
        } else {
          this.msgTip = "请先选择需要" + titel + "的数据行";
          this.msgType = 1; // 0 带功能确定  1 无功能确定  2 带功能确定、取消
          this.showMsgBox = true;
          // return this.$MessageBox.alertConfirmReminder(
          //   "请先选择需要" + titel + "的数据行"
          // );
        }
      }
    },
    routerFun(titel) {
      //   var id = this.rowInfo.fBeamid;
      this.$router.push({
        path: "/tensionManage/tensionTaskListDetails",
      });
      var query = {
        fId: this.rowInfo.fId,
        fCompanyid: this.rowInfo.fCompanyid,
        num: titel,
      };
      window.sessionStorage.setItem(
        "GxEmbedded_TWbsQuery",
        JSON.stringify(query)
      );
    },

    // 提交
    SubmitText(row) {
      if (row.fId != "" && row.fId != null) {
        if (row.fStatus == "未提交") {
          this.msgTip = "是否继续提交?";
          this.msgType = 2; // 0 带功能确定  1 无功能确定  2 带功能确定、取消
          this.showMsgBox = true;
          this.titelName = "提交";
        } else {
          this.msgTip = '请选择状态为"未提交"的数据！';
          this.msgType = 1; // 0 带功能确定  1 无功能确定  2 带功能确定、取消
          this.showMsgBox = true;
        }
      } else {
        this.msgTip = "请先选中要提交的数据！";
        this.msgType = 1; // 0 带功能确定  1 无功能确定  2 带功能确定、取消
        this.showMsgBox = true;
      }
    },

    // 删除
    rowDelete(row) {
      if (row.fId != "" && row.fId != null) {
        if (row.fStatus == "未提交") {
          this.msgTip = "此操作将永久删除该数据, 是否继续?";
          this.msgType = 2; // 0 带功能确定  1 无功能确定  2 带功能确定、取消
          this.showMsgBox = true;
          this.titelName = "删除";
        } else {
          this.msgTip = '请选择状态为"未提交"的数据！';
          this.msgType = 1; // 0 带功能确定  1 无功能确定  2 带功能确定、取消
          this.showMsgBox = true;
          // this.$MessageBox.alertConfirmReminder('请选择状态为"未提交"的数据！');
        }
      } else {
        this.msgTip = "请先选中要删除的数据！";
        this.msgType = 1; // 0 带功能确定  1 无功能确定  2 带功能确定、取消
        this.showMsgBox = true;
        // this.$MessageBox.alertConfirmReminder("请先选中要删除的数据！");
      }
    },
  },
};
</script>

<style scoped lang='less'></style>